//
//  MD2Anim.m
//  CompGraf2
//
//  Created by Juan Niosi on 06/09/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import "MD2AnimFrame.h"

@implementation MD2AnimFrame

@synthesize normals, name, vertices;

- (id)init
{
    self = [super init];
    if (self) {
        // Initialization code here.
    }
    
    return self;
}

- (id)initWithName:(char *)nm withVertices:(GLfloat *)vs withNormals:(GLfloat *)ns
{
    self = [super init];
    if (self) {
        self.name = nm;
        self.vertices = vs;
        self.normals = ns;
    }
    
    return self;
}

- (void)kill
{
    self.name = NULL;
    free(self.vertices);
    free(self.normals);
}

- (void)dealloc
{
    free(name);
    free(vertices);
    free(normals);
    [super release];
}
@end
